package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/8/21.
 */

public class DeliveryBean implements Parcelable{

    private String addressId;
    private String userId;
    private String userName;
    private String userPhone;
    private String areaIdPath;
    private String areaId;
    private String userAddress;
    private String isDefault;
    private String dataFlag;
    private String createTime;
    private String simpleAddress;
    private String detailAddress;

    public DeliveryBean() {
    }

    public DeliveryBean(String addressId, String userId, String userName, String userPhone, String areaIdPath, String areaId, String userAddress, String isDefault, String dataFlag, String createTime, String simpleAddress, String detailAddress) {
        this.addressId = addressId;
        this.userId = userId;
        this.userName = userName;
        this.userPhone = userPhone;
        this.areaIdPath = areaIdPath;
        this.areaId = areaId;
        this.userAddress = userAddress;
        this.isDefault = isDefault;
        this.dataFlag = dataFlag;
        this.createTime = createTime;
        this.simpleAddress = simpleAddress;
        this.detailAddress = detailAddress;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getAreaIdPath() {
        return areaIdPath;
    }

    public void setAreaIdPath(String areaIdPath) {
        this.areaIdPath = areaIdPath;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getDataFlag() {
        return dataFlag;
    }

    public void setDataFlag(String dataFlag) {
        this.dataFlag = dataFlag;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSimpleAddress() {
        return simpleAddress;
    }

    public void setSimpleAddress(String simpleAddress) {
        this.simpleAddress = simpleAddress;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    @Override
    public String toString() {
        return "DeliveryBean{" +
                "addressId='" + addressId + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", areaIdPath='" + areaIdPath + '\'' +
                ", areaId='" + areaId + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", isDefault='" + isDefault + '\'' +
                ", dataFlag='" + dataFlag + '\'' +
                ", createTime='" + createTime + '\'' +
                ", simpleAddress='" + simpleAddress + '\'' +
                ", detailAddress='" + detailAddress + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.addressId);
        dest.writeString(this.userId);
        dest.writeString(this.userName);
        dest.writeString(this.userPhone);
        dest.writeString(this.areaIdPath);
        dest.writeString(this.areaId);
        dest.writeString(this.userAddress);
        dest.writeString(this.isDefault);
        dest.writeString(this.dataFlag);
        dest.writeString(this.createTime);
        dest.writeString(this.simpleAddress);
        dest.writeString(this.detailAddress);
    }

    protected DeliveryBean(Parcel in) {
        this.addressId = in.readString();
        this.userId = in.readString();
        this.userName = in.readString();
        this.userPhone = in.readString();
        this.areaIdPath = in.readString();
        this.areaId = in.readString();
        this.userAddress = in.readString();
        this.isDefault = in.readString();
        this.dataFlag = in.readString();
        this.createTime = in.readString();
        this.simpleAddress = in.readString();
        this.detailAddress = in.readString();
    }

    public static final Creator<DeliveryBean> CREATOR = new Creator<DeliveryBean>() {
        @Override
        public DeliveryBean createFromParcel(Parcel source) {
            return new DeliveryBean(source);
        }

        @Override
        public DeliveryBean[] newArray(int size) {
            return new DeliveryBean[size];
        }
    };
}
